package com.blog.service;

import com.blog.dto.CategoryDTO;
import com.blog.dto.CategorySearchDTO;
import com.blog.vo.CategoryVO;
import com.blog.vo.userCategoryVO;

import java.util.List;

public interface CategoryService {
    List<CategoryVO> list();

    List<CategoryVO> listByUId(Long id);

    List<CategoryVO> SearchCategory(CategorySearchDTO categorySearchDTO);

    CategoryVO listById(Long id);

    boolean AddCategory(String value);

    boolean EditCategory(CategoryDTO categoryDTO);

    boolean DeleteCategory(Long id);

    List<userCategoryVO> userCategoryList(Long uid);

    Long getCategoryTotal(Long uid);
}
